<?php

require_once "core/application/models/mpremiums/mpremiums4.php";

class Mpremium5 extends Mpremium4 {

    private $_query;

    protected function deletePremiumAccountFromDB($account) {
        /**
         *  удаляем премиум аккаунт
         * @param string $account
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "UPDATE `account_data` SET `membership` = '0', `expire` = NULL WHERE `name` = '$account' ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>